﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSetMicro" targetNamespace="http://tempuri.org/DataSetMicro.xsd" xmlns:mstns="http://tempuri.org/DataSetMicro.xsd" xmlns="http://tempuri.org/DataSetMicro.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="db_RetiroConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="db_RetiroConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.ServicioMicro.Properties.Settings.GlobalReference.Default.db_RetiroConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="microTableAdapter" GeneratorDataComponentClassName="microTableAdapter" Name="micro" UserDataComponentName="microTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="db_RetiroConnectionString (Settings)" DbObjectName="db_Retiro.dbo.micro" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [dbo].[micro] WHERE (([id] = @Original_id) AND ([empresa_id] = @Original_empresa_id) AND ([destino_id] = @Original_destino_id))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_empresa_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="empresa_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_destino_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="destino_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [dbo].[micro] ([Codigo], [empresa_id], [destino_id]) VALUES (@Codigo, @empresa_id, @destino_id);
SELECT id, Codigo, empresa_id, destino_id FROM micro WHERE (id = SCOPE_IDENTITY())</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Codigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Codigo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@empresa_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="empresa_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@destino_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="destino_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>SELECT id, Codigo, empresa_id, destino_id FROM dbo.micro</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [dbo].[micro] SET [Codigo] = @Codigo, [empresa_id] = @empresa_id, [destino_id] = @destino_id WHERE (([id] = @Original_id) AND ([empresa_id] = @Original_empresa_id) AND ([destino_id] = @Original_destino_id));
SELECT id, Codigo, empresa_id, destino_id FROM micro WHERE (id = @id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Codigo" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="Codigo" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@empresa_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="empresa_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@destino_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="destino_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_empresa_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="empresa_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Original_destino_id" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="destino_id" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="id" ColumnName="id" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="id" DataSetColumn="id" />
              <Mapping SourceColumn="Codigo" DataSetColumn="Codigo" />
              <Mapping SourceColumn="empresa_id" DataSetColumn="empresa_id" />
              <Mapping SourceColumn="destino_id" DataSetColumn="destino_id" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="db_RetiroConnectionString (Settings)" DbObjectName="db_Retiro.dbo.micro" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="true" GeneratorGetMethodName="obtenerMicrosDeLaEmpresaConId" GetMethodModifier="Public" GetMethodName="obtenerMicrosDeLaEmpresaConId" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="obtenerMicrosDeLaEmpresaConId" UserSourceName="obtenerMicrosDeLaEmpresaConId">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        id, Codigo, empresa_id, destino_id
FROM            micro
WHERE        (empresa_id = @empresa_id)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="empresa_id" ColumnName="empresa_id" DataSourceName="db_Retiro.dbo.micro" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@empresa_id" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="empresa_id" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSetMicro" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSetMicro" msprop:Generator_UserDSName="DataSetMicro">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="micro" msprop:Generator_TableClassName="microDataTable" msprop:Generator_TableVarName="tablemicro" msprop:Generator_RowChangedName="microRowChanged" msprop:Generator_TablePropName="micro" msprop:Generator_RowDeletingName="microRowDeleting" msprop:Generator_RowChangingName="microRowChanging" msprop:Generator_RowEvHandlerName="microRowChangeEventHandler" msprop:Generator_RowDeletedName="microRowDeleted" msprop:Generator_RowClassName="microRow" msprop:Generator_UserTableName="micro" msprop:Generator_RowEvArgName="microRowChangeEvent">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="id" msdata:ReadOnly="true" msdata:AutoIncrement="true" msdata:AutoIncrementSeed="-1" msdata:AutoIncrementStep="-1" msprop:Generator_ColumnVarNameInTable="columnid" msprop:Generator_ColumnPropNameInRow="id" msprop:Generator_ColumnPropNameInTable="idColumn" msprop:Generator_UserColumnName="id" type="xs:int" />
              <xs:element name="Codigo" msprop:Generator_ColumnVarNameInTable="columnCodigo" msprop:Generator_ColumnPropNameInRow="Codigo" msprop:Generator_ColumnPropNameInTable="CodigoColumn" msprop:Generator_UserColumnName="Codigo">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="2147483647" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="empresa_id" msprop:Generator_ColumnVarNameInTable="columnempresa_id" msprop:Generator_ColumnPropNameInRow="empresa_id" msprop:Generator_ColumnPropNameInTable="empresa_idColumn" msprop:Generator_UserColumnName="empresa_id" type="xs:int" />
              <xs:element name="destino_id" msprop:Generator_ColumnVarNameInTable="columndestino_id" msprop:Generator_ColumnPropNameInRow="destino_id" msprop:Generator_ColumnPropNameInTable="destino_idColumn" msprop:Generator_UserColumnName="destino_id" type="xs:int" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:micro" />
      <xs:field xpath="mstns:id" />
    </xs:unique>
  </xs:element>
</xs:schema>